/**
 * 
 */
function getXMLObject() {
    var xmlHttpObj;
    try {
        xmlHttpObj = new XMLHttpRequest(); // for Mozilla, Opera 8.0+, Safari ... browsers
    } catch (e) {
        try {
            xmlHttpObj = new ActiveXObject("Msxml2.XMLHTTP"); // for old Microsoft browsers
        } catch (e2) {
            xmlHttpObj = new ActiveXObject("Microsoft.XMLHTTP"); // for Microsoft IE 6.0+
        }
    }

    return xmlHttpObj;
}


function uploadFormData() {
	var oMyForm = new FormData();
	oMyForm.append("imgFile", uploadfile.files[0]);

	$
			.ajax({
				url : '../admin/uploadFile',
				data : oMyForm,
				dataType : 'text',
				processData : false,
				contentType : false,
				type : 'POST',
				success : function(data) {
					alert(data);
				}
			});
}